//
//  SNKPhotoCell.m
//  SleepNews
//
//  Created by Kavee DJ on 2016/12/12.
//  Copyright © 2016年 Kavee DJ. All rights reserved.
//

#import "SNKPhotoCell.h"
#import "SNKImg.h"
#import "UIImageView+WebCache.h"

@interface SNKPhotoCell ()

@property (weak, nonatomic) IBOutlet UIImageView *photoImage;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation SNKPhotoCell

- (void)setImg:(SNKImg *)img {
    _img = img;
    
    [self.photoImage sd_setImageWithURL:[NSURL URLWithString:img.small_url] placeholderImage:nil];
    self.titleLabel.text = img.title;
}

@end
